<?php
// zengke 
class Log extends Data {
	private $tableName = "gem_log";
	static public function log_gem($uid, $origin, $change, $type, $value1=0,$value2=0) {
		$options = array(
			'origin' => '$origin',
			'change' => '$$change',
			'type' => '$type',
			'value1' => '$value1',
			'value2' => '$value2',
			'uid' => '$uid',
			'date' => time()
		);
		return $this->insertData($this->tableName, $options);
	}
}
?>